#include"test.h"
template<class T>
void vector<T>::vectorpush(const T& x) {
	if (_size == _capacity)
	{
		T newcapacity = _capacity == 0 ? 2 : _capacity * 2;
		T* tempt = new T[newcapacity];
		if (_a)
		{
			memcpy(tempt, _a, sizeof(T) * newcapacity);
			delete[]_a;
		}
		_capacity = newcapacity;
		_a = tempt;
	}
	_a[_size] = x;
	_size++;
}template <class T>
void vector<T>::vectorpop() {

	assert(_size > 0);
	_size--;
}
template<class T>
int vector<T>::vectormember()
{
	assert(_size > 0);
	return _size;

}
